package tianrun.ziguan.api.calculate.config.service.ge.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import tianrun.ziguan.api.calculate.config.dao.TGeModuleMapper;
import tianrun.ziguan.api.calculate.config.entity.TGeModule;
import tianrun.ziguan.api.calculate.config.enums.SourceTypeEnum;
import tianrun.ziguan.api.calculate.config.service.ge.TGeModuleService;

import java.util.List;

@Service
public class TGeModuleServiceImpl extends ServiceImpl<TGeModuleMapper, TGeModule> implements TGeModuleService {
    // 这里可以实现自定义的业务逻辑

    @Override
    public List<TGeModule> listByCType(SourceTypeEnum cType) {
        return list(Wrappers.<TGeModule>lambdaQuery().eq(TGeModule::getcType,cType));
    }
}
